<?php

namespace App\Enums\Message;

class MessageRedirectTypeEnum
{

    const TECHNOLOGY_AUDIT = ['type' => 1, 'text' => '技能审核'];
    const COMMODITY_AUDIT = ['type' => 2, 'text' => '宝物审核'];
    const MOMENT_AUDIT = ['type' => 3, 'text' => '时光审核'];
    const TECHNOLOGY_PRAISE = ['type' => 4, 'text' => '技能点赞'];
    const COMMODITY_PRAISE = ['type' => 5, 'text' => '宝物点赞'];
    const MOMENT_PRAISE = ['type' => 6, 'text' => '时光点赞'];
    const COMMENT_PRAISE = ['type' => 7, 'text' => '评论点赞'];
    const REPLY_PRAISE = ['type' => 8, 'text' => '回复点赞'];
    const SUBSCRIBE = ['type' => 9, 'text' => '关注'];

    public static function getType($data)
    {
        return $data['type'] ?? 0;
    }

    public static function getText($data)
    {
        return $data['text'];
    }
}
